package services

import (
	"new/dao"
	"new/models"
)

//显示病历表信息
func GetAllmedical_record() (error, []models.Medical_record, int64) {
	medical_recorddata, total, err := dao.GetAllmedical_record()
	return err, medical_recorddata, total
}

//删除病历表信息
func Delmedical_record(mno int) error {
	err := dao.Delmedical_record(mno)
	return err
}

//更改病历表信息
func Updatemedical_record(medical_record models.Medical_record) error {
	err := dao.Updatemedical_record(medical_record)
	return err
}

//增加病历表信息
func Addmedical_record(medical_record models.Medical_record) error {
	err := dao.Addmedical_record(medical_record)
	return err
}
